<?
	$functions_uri = $_SERVER['DOCUMENT_ROOT'] . "/drizzo/engine/functions.php";
	@require_once($functions_uri);

	if(drizzo_config_file_check()) {
		drizzo_update_version_number();
		drizzo_login();
		drizzo_user_info();
		drizzo_get_page_id();
		drizzo_get_page_type();
		$drizzo_global_options = drizzo_global_options();
		$user_id = session_user_id;
		$drizzo_user_options = drizzo_user_options($user_id);
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

	<head>
		
		<title>Drizzo</title>
		
		<link rel="stylesheet" type="text/css" href="<? echo $drizzo_admin_css; ?>" />
		
		<script type="text/javascript" src="<? echo $drizzo_admin_js; ?>/scriptaculous/prototype.js"></script>
		<script type="text/javascript" src="<? echo $drizzo_admin_js; ?>/scriptaculous/scriptaculous.js?load=effects"></script>
		<script type="text/javascript" src="<? echo $drizzo_admin_js; ?>/drizzo.js"></script>

	</head>
	
	<body>
		
		<div id="header">
			
			<h1><a href="http://<? echo domain_name; ?>" title="<? echo drizzo_site_name(); ?>"><? echo drizzo_site_name(); ?></a><br /><span id="powered_by">Powered by Drizzo <small><? echo drizzo_version_number() . " " . drizzo_version_status(); ?></small></span>
			<?
				if(function_exists(drizzo_login_check)) { if(drizzo_login_check()) {
			?>
							<div id="logout"><form action="<? echo $_SERVER['PHP_SELF']; ?>" method="post" name="logout"><input type="hidden" value="logout" name="login"></input><a href="javascript:document.logout.submit()" title="Logout" class="logout"><span class="menu_link">Logout<? if(drizzo_user_info()) { echo ", " . session_username; } ?></span></a></form></div>
			<?
				} }
			?>
			</h1>

			<ul>

				<li><a href="<? echo admin_folder; ?>" title="Base" class="base"><span class="menu_link">Base</span></a></li>
				
				<li><a href="<? echo admin_folder; ?>blog.php" title="Blog" class="blog"><span class="menu_link">Blog</span></a></li>

				<li><a href="<? echo admin_folder; ?>pages.php" title="Pages" class="pages"><span class="menu_link">Pages</span></a></li>

				<li><a href="<? echo admin_folder; ?>comments.php" title="Comments" class="comments"><span class="menu_link">Comments</span></a></li>

				<li><a href="<? echo admin_folder; ?>netcasts.php" title="Netcasts" class="netcasts"><span class="menu_link">Netcasts</span></a></li>

				<li><a href="<? echo admin_folder; ?>reviews.php" title="Reviews" class="reviews"><span class="menu_link">Reviews</span></a></li>

				<li><a href="<? echo admin_folder; ?>events.php" title="Events" class="events"><span class="menu_link">Events</span></a></li>

				<li><a href="<? echo admin_folder; ?>gallery.php" title="Gallery" class="gallery"><span class="menu_link">Gallery</span></a></li>

				<li><a href="<? echo admin_folder; ?>links.php" title="Links" class="links"><span class="menu_link">Links</span></a></li>
			
				<li><a href="<? echo admin_folder; ?>users.php" title="Users" class="users"><span class="menu_link">Users</span></a></li>

				<li><a href="<? echo admin_folder; ?>options.php" title="Options" class="options"><span class="menu_link">Options</span></a></li>

				<li><a href="<? echo admin_folder; ?>help.php" title="Help" class="help"><span class="menu_link">Help</span></a></li>

				<div class="clear"></div>

			</ul>
			
		</div>
<? if(function_exists(drizzo_protector)) { drizzo_protector(); } ?>